// 请求接口
import request from '@/utils/request.js';

// 登录接口
export function login(data) {

    return request({
        url: 'auth/sys',
        method: "POST",
        data: data
    })
}

// 検索接口
export function searchUserDetails() {

    return request({
        url: 'sys/userDetail/info',
        method: "GET"
    })
}

// 変更接口
export function updateDetail(data) {

    return request({
        url: 'sys/userDetail',
        method: "PUT",
        data: data
    })
}

// 一覧検索接口
export function searchDetailList(params) {

    return request({
        url: 'sys/detail/info',
        method: "GET",
        params: params
    })
}

// 删除 数据，传数组
export function removeResume(insertTimes) {

    return request({
        url: `/sys/detail`,
        data: insertTimes,
        method: "DELETE"
    })
}

export function selectStatusList() {
    return request({
        url: 'sys/card/status',
        method: "GET"
    })
}

export function selectUserCardList() {
    return request({
        url: 'sys/userCard/status',
        method: "GET"
    })
}

export function updateCardStatus(data) {
    return request({
        url: 'sys/userCard',
        method: "PUT",
        data: data
    })
}


export function getRoleId() {
    return request({
        url: 'sys/user/info',
        method: "GET"
    })
}